home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / util / Mac F2C 1.3.sit / Mac F2C 1.3 / Mac F2C Libraries / libI77 Sources / rawio.h < prev    next >
Text File  |  1995-09-09  |  797b  |  45 lines

  1. #ifdef KR_headers
  2. extern FILE *fdopen();
  3. #else
  4. #ifdef MSDOS
  5. #include "io.h"
  6. #define close _close
  7. #define creat _creat
  8. #define open _open
  9. #define read _read
  10. #define write _write
  11. #endif
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #ifndef MSDOS
  16. #ifdef OPEN_DECL
  17. extern int creat(const char*,int), open(const char*,int);
  18. #endif
  19. extern int close(int);
  20. extern int read(int,void*,size_t), write(int,void*,size_t);
  21. extern int unlink(const char*);
  22. #ifndef _POSIX_SOURCE
  23. #ifndef NON_UNIX_STDIO
  24. extern FILE *fdopen(int, const char*);
  25. #endif
  26. #endif
  27. #endif
  28.  
  29. extern char *mktemp(char*);
  30.  
  31. #ifdef __cplusplus
  32.     }
  33. #endif
  34. #endif
  35.  
  36. /* IMT 13Jan95 Do not include fcntl.h for MetroWerks */
  37. #if !defined(CW_F2C)    && !defined(MPW_CW_F2C)    
  38. #include "fcntl.h"
  39. #endif
  40.  
  41. #ifndef O_WRONLY
  42. #define O_RDONLY 0
  43. #define O_WRONLY 1
  44. #endif
  45.